package cn.panda.edu.dao;

import cn.panda.edu.model.Major;

import java.util.List;
import java.util.Map;

/**
 *
 * 类描述：  专业表DAO
 */
public interface MajorMapper {
   /**
    *
   * @Title: deleteByPrimaryKey
   * @Description: TODO(通过主键删除)
   * @param @param majorId
   * @param @return
   * @return int
    */
   int deleteByPrimaryKey(Integer majorId);

   /**
    *
   * @Title: insert
   * @Description: TODO(插入)
   * @param @param record
   * @param @return
   * @return int
    */
   int insert(Major record);

   /**
    *
   * @Title: insertSelective
   * @Description: TODO(动态插入)
   * @param @param record
   * @param @return
   * @return int
    */
   int insertSelective(Major record);

   /**
    *
   * @Title: selectByPrimaryKey
   * @Description: TODO(通过majorId 查找)
   * @param @param majorId
   * @param @return
   * @return Major
    */
   Major selectByPrimaryKey(Integer majorId);

   /**
    *
   * @Title: updateByPrimaryKeySelective
   * @Description: TODO(动态 更新)
   * @param @param record
   * @param @return
   * @return int
    */
   int updateByPrimaryKeySelective(Major record);

   /**
    *
   * @Title: updateByPrimaryKeyWithBLOBs
   * @Description: TODO( 更新)
   * @param @param record
   * @param @return
   * @return int
    */
   int updateByPrimaryKeyWithBLOBs(Major record);

   /**
    *
   * @Title: updateByPrimaryKey
   * @Description: TODO(更新)
   * @param @param record
   * @param @return
   * @return int
    */
   int updateByPrimaryKey(Major record);

   /**
    *
   * @Title: selectByIdAndName
   * @Description: TODO(通过专业编号或专业名称模糊查询)
   * @param map
   * @return
   * List<Major>
    */
   List<Major> selectByIdAndName(Map map);

   /**
    *
   * @Title: selectAll
   * @Description: TODO(查询所有)
   * @return
   * List<Major>
    */
   List<Major> selectAll();
}
